package com.hj.dapp.business.mainmaterial.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.hj.dapp.business.mainmaterial.model.MainMaterial;
import com.hj.dapp.common.request.PageRequest;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 胡奥程
 * @version 1.0
 * @date 2024/1/27
 */

public interface MainMaterialService {
    MainMaterial get(Long id);

    void save(MainMaterial mainMaterial);

    IPage<MainMaterial> page(PageRequest<MainMaterial> pageRequest);

    void delete(Long id);

    void edit(MainMaterial mainMaterial);

    List<MainMaterial> list(Long categoryId);
}
